Fixed indentation including issues with "=" normal mode command.#59
Fixed indentation including issues with "=" normal mode command.#59bak-t wants to merge 2 commits intoPProvost:masterfrom
Conversation
heaths
left a comment
There was a problem hiding this comment.
Thank you for the PR! I'm doing some manual testing, and found automatic one-space indentation in the following scenario:
Without your changes, everything stays on the previous line's column. Reading about these cindent-related options - which I admit in 30 some years I haven't really played with much - it seems may be related to the cinkeys options.
Thoughts? I tried to think and test a bunch of indent-related tasks and, for the most part, this does seem to work better, like auto-indenting parameters in a param() block.
|
I was able to slightly improve indentation of comments with |
- Improved indentation of comments. - Simplified option for unclosed parentheses.
|
Thanks. I look forward to it. I think this is a big step in the right direction, but worry if I found an arguably minor regression, what other possibly larger regressions have I missed? Hopefully whatever could resolve this issue would mitigate at least some risk of regression elsewhere. |
|
It seems that # comment
# another comment
# mistakenly indented commentafter # comment
# another comment
# mistakenly indented commentafter # comment
# another comment
# mistakenly indented commentand so on. I'll experiment with |
These changes should fix issue #27. I replaced smartindent with fine tuned cindent.